﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.sprite.animation;
using Microsoft.Xna.Framework;
using Imaginecup.sprite;

namespace Imaginecup.gameState.ending.scene.kindOfAnimation
{
    public class AnimationSmile : BaseAnimation , IAnimationLoadContent
    {
        private AnimationIndexMan m_IndexMan;

        public AnimationIndexMan LoadAnimationIndexMan()
        {
            m_IndexMan = new AnimationIndexMan();
            m_IndexMan.SetDelay(1.5);
            m_IndexMan.SetIndex(new Vector2(0, 0), 2);
            m_IndexMan.StartAnimation();

            m_LastIdexCount = 1;
            return m_IndexMan;
        }

        public sprite.ISprite LoadSprite()
        {
            AnimationSpriteByTexture textureSprite = new AnimationSpriteByTexture(m_IndexMan);

            for (int i = 1; i <= 2; i++)
            {
                textureSprite.AddTextureName("ending\\Smile" + i);
            }

            return textureSprite;
        }


        public void UnloadResource()
        {

        }
    }
}
